<include file="public@head" />
</head>

<body>
    <div class="layui-fluid wrap" id="component-tabs">
        <div class="layui-row">
            <div class="layui-col-md12">
                <div class="layui-card">
                    <div class="layui-card-header">上传设置</div>
                    <div class="layui-card-body">
                        <div class="layui-tab">
                            <ul class="layui-tab-title">
                                <li class="layui-this"><a href="{:url('admin/setting/upload')}">上传设置</a></li>
                            </ul>
                            <div class="layui-tab-content">
                                <div class="layui-tab-item layui-show">
                                    <form method="post" class="js-ajax-form layui-form" role="form" action="{:url('setting/uploadPost')}">
                                        <div class="layui-form-item">
                                            <label class="layui-form-label">上传最大数</label>
                                            <div class="layui-input-block">
                                                <div class="layui-inline">
                                                    <input type="text" class="layui-input" name="max_files" title="最大同时上传文件数" placeholder="最大同时上传文件数" value="{$upload_setting.max_files|default=20}">
                                                </div>
                                                <span class="layui-word-aux layui-inline">多文件上传时,用户能最大同时上传文件数,默认20个</span>
                                            </div>
                                        </div>
                                        <div class="layui-form-item">
                                            <label class="layui-form-label">分块大小</label>
                                            <div class="layui-input-block">
                                                <div class="layui-inline">
                                                    <input type="text" class="layui-input" name="chunk_size" title="文件分块上传分块大小KB,1M=1024KB" placeholder="文件分块上传分块大小KB,1M=1024KB" value="{$upload_setting.chunk_size|default=512}">
                                                </div>
                                                <span class="layui-word-aux layui-inline">文件上传采用分块上传,文件分块大小默认512KB,可以根据服务器最大上传限制设置此数值</span>
                                            </div>
                                        </div>
                                        <div class="layui-form-item">
                                            <label class="layui-form-label">图片文件</label>
                                            <div class="layui-input-block">
                                                <div class="layui-inline">
                                                    <input type="text" class="layui-input" name="file_types[image][upload_max_filesize]" title="允许上传大小KB,1M=1024KB" placeholder="允许上传大小KB,1M=1024KB" value="{$upload_setting.file_types.image.upload_max_filesize|default=10240}">
                                                </div>
                                                <div class="layui-inline">
                                                    <input style="width:380px;" type="text" class="layui-input" name="file_types[image][extensions]" title="扩展名,以英文逗号分隔" placeholder="扩展名,以英文逗号分隔" value="{$upload_setting.file_types.image.extensions|default='jpg,jpeg,png,gif,bmp'}">
                                                </div> <span class="layui-word-aux layui-inline">允许上传大小默认为10240KB,1M=1024KB，允许上传格式默认为jpg,jpeg,png,gif,bmp</span>
                                            </div>
                                        </div>
                                        <div class="layui-form-item">
                                            <label class="layui-form-label">视频文件</label>
                                            <div class="layui-input-block">
                                                <div class="layui-inline">
                                                    <input type="text" class="layui-input" name="file_types[video][upload_max_filesize]" title="允许上传大小KB,1M=1024KB" placeholder="允许上传大小KB,1M=1024KB" value="{$upload_setting.file_types.video.upload_max_filesize|default=10240}">
                                                </div>
                                                <div class="layui-inline">
                                                    <input style="width:380px;" type="text" class="layui-input" name="file_types[video][extensions]" title="扩展名,以英文逗号分隔" placeholder="扩展名,以英文逗号分隔" value="{$upload_setting.file_types.video.extensions|default='mp4,avi,wmv,rm,rmvb,mkv'}">
                                                </div> <span class="layui-word-aux layui-inline">允许上传大小默认为102400KB,1M=1024KB，允许上传格式默认为mp4,avi,wmv,rm,rmvb,mkv</span>
                                            </div>
                                        </div>
                                        <div class="layui-form-item">
                                            <label class="layui-form-label">音频文件</label>
                                            <div class="layui-input-block">
                                                <div class="layui-inline">
                                                    <input type="text" class="layui-input" name="file_types[audio][upload_max_filesize]" title="允许上传大小KB,1M=1024KB" placeholder="允许上传大小KB,1M=1024KB" value="{$upload_setting.file_types.audio.upload_max_filesize|default=10240}">
                                                </div>
                                                <div class="layui-inline">
                                                    <input style="width:380px;" type="text" class="layui-input" name="file_types[audio][extensions]" title="扩展名,以英文逗号分隔" placeholder="扩展名,以英文逗号分隔" value="{$upload_setting.file_types.audio.extensions|default='mp3,wma,wav'}">
                                                </div>
                                                <span class="layui-word-aux layui-inline">允许上传大小默认为10240KB,1M=1024KB，允许上传格式默认为mp3,wma,wav</span>
                                            </div>
                                        </div>
                                        <div class="layui-form-item">
                                            <label class="layui-form-label">附件</label>
                                            <div class="layui-input-block">
                                                <div class="layui-inline">
                                                    <input type="text" class="layui-input" name="file_types[file][upload_max_filesize]" title="允许上传大小KB,1M=1024KB" placeholder="允许上传大小KB,1M=1024KB" value="{$upload_setting.file_types.file.upload_max_filesize|default=10240}">
                                                </div>
                                                <div class="layui-inline">
                                                    <input style="width:380px;" type="text" class="layui-input" name="file_types[file][extensions]" title="扩展名,以英文逗号分隔" placeholder="扩展名,以英文逗号分隔" value="{$upload_setting.file_types.file.extensions|default='txt,pdf,doc,docx,xls,xlsx,ppt,pptx,zip,rar'}">
                                                </div>
                                                <span class="layui-word-aux layui-inline">
                                                    上传大小默认为10240KB(1M),上传格式默认为除以上文档类型以外的其它常用文件,如：txt,pdf,doc,docx,xls,xlsx,ppt,pptx,zip,rar</span>
                                            </div>
                                        </div>
                                        <div class="layui-form-item layui-layout-admin">
                                            <div class="layui-input-block">
                                                <div class="layui-footer" style="left:0;">
                                                    <button type="submit" class="layui-btn js-ajax-submit">{:lang('SAVE')}</button>
                                                    <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                                                </div>
                                            </div>
                                        </div>
                                    </form>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <include file="public@footer" />
</body>

</html>